package yape_jvm.yape.java.euler324;

public class Euler324 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		GridLevel g = new GridLevel(0);
		for(int i=0; i<GridLevel.NUM_BLOCKS*2; i++)
		{
			g.useBlock(i * 2);
			for(int h=0; h<GridLevel.GRID_HEIGHT; h++)
			{
				for(int w=0; w<GridLevel.GRID_WIDTH; w++)
					System.out.print((g.isBlockFree(GridLevel.GRID_HEIGHT*h + w) ? "f" : "u"));
				System.out.println("");
			}
			int firstOpen = g.getFirstOpenBlock();
			System.out.println(" First open block: " + firstOpen);
			for(int k=0; k<GridLevel.NUM_BLOCKS; k++)
				System.out.println(k + " Right? " + g.isFreeToRightOf(k) + " Below? " + g.isFreeBelow(k));
		}
	}

}
